package com.heima.utils.common;

import com.heima.model.user.pojos.ApUser;
import com.heima.model.wemedia.pojos.WmUser;

public class ApuserThreadLocalUtil {

    private static ThreadLocal<ApUser> USER_THREAD_LOCAL = new ThreadLocal<>();

    public static void set(ApUser apUser){
        USER_THREAD_LOCAL.set(apUser);
    }


    public static ApUser get(){
        return USER_THREAD_LOCAL.get();
    }


    public static void clear(){
        USER_THREAD_LOCAL.remove();
    }

}
